package com.iworkh.spring.aop.anno.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Check 切面
 *
 * @author: iworkh-沐雨云楼
 * @date: 2019-12-19
 */
@Component
@Aspect
@Order(10)
public class CheckAspect {

    @Before(value = "LoggerAspect.commPointCut()")
    private void beforeMethod(JoinPoint joinPoint) {
        System.out.println("CheckAspect...before--" + joinPoint.getSignature().getName());
    }

    @After(value = "LoggerAspect.commPointCut()")
    private void afterMethod() {
        System.out.println("CheckAspect...after");
    }

}
